<ul id="menu">
<li><a href="<?php echo url('clientgame/index');?>">首页</a></li>
<?php foreach ($categorys as $v):?>
<li <?php if ($cid==$v->id){echo 'class="on"';}?>><a href="<?php echo url('clientgame/list',array('cid'=>$v->id))?>"><?php echo $v->cate_name;?></a></li>
<?php endforeach;?>
<li class="end"></li>
</ul>